<template>
  <view class="my">
    <view class="myList">
      <AtList :hasBorder="true">
        <!-- <AtListItem
          :hasBorder="true"
          title='领取收益'
          note='描述信息'
          arrow='right'
          :iconInfo="{ size: 25, color: '#78A4FA', value: 'calendar', }"
        /> -->
        <AtListItem
          v-for="item in 3"
          :key="item"
          :hasBorder="true"
          title='收入'
          extraText='+25'
          note='2021-06-12 12:56:10'
        />
        <AtListItem
          v-for="item in 5"
          :key="item"
          :hasBorder="true"
          title='提现'
          extraText='-25'
          note='2021-06-12 12:56:10'
        />
        <!-- <AtListItem
          :hasBorder="true"
          title='意见反馈'
          note='我们重视每一个宝贵的建议或需求'
          arrow='right'
          :iconInfo="{ size: 25, color: '#78A4FA', value: 'calendar', }"
        /> -->
      </AtList>
    </view>
  </view>
</template>

<script setup>
import { onBeforeMount, onMounted, reactive, ref } from 'vue'
import Taro from "@tarojs/taro"

const state = reactive({
  myInfo:[
    {
      image: 'https://img12.360buyimg.com/jdphoto/s72x72_jfs/t6160/14/2008729947/2754/7d512a86/595c3aeeNa89ddf71.png',
      value: '我的收入'
    },
    {
      image: 'https://img20.360buyimg.com/jdphoto/s72x72_jfs/t15151/308/1012305375/2300/536ee6ef/5a411466N040a074b.png',
      value: '我的积分'
    },
    {
      image: 'https://img10.360buyimg.com/jdphoto/s72x72_jfs/t5872/209/5240187906/2872/8fa98cd/595c3b2aN4155b931.png',
      value: '我的订单'
    }
  ]
})

const redirect = ()=>{
  Taro.navigateTo({
    url: '/pages/order/order'
  })
}

const handlerClick = (item,index)=>{
  console.log(item,index);
  if (index == 2) {
    redirect()
  }
}

onBeforeMount(()=>{

})


</script>
